<template>
    <div>
        
        <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="修改信息" name="basic">
                <el-form ref="formSystem" :model="formSystem" label-width="120px">

                    <el-form-item label="账号">
                        <el-input ref="name" v-model="username" placeholder="请输入账号"></el-input>
                    </el-form-item>
                    <el-form-item label="密码">
                        <el-input ref="name" v-model="password" placeholder="请输入密码"></el-input>
                    </el-form-item>

                    <el-form-item>
                        <el-button type="success" icon="el-icon-check" @click="submitSystem">修改</el-button>
                    </el-form-item>
                </el-form>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script>
    import Editor from '@/components/Editor'

    export default {
        name: 'modify',
        components: {
            Editor
        },
        data() {
            return {
               username:'',
               password:'',
            }
        },
        mounted() {
            // this.$nextTick(() => {
            //     // 获取信息
            //     get('/getSystem', {
            //         cid: sessionStorage.getItem('cid')
            //     }).then(res => {
            //         const result = res.data
            //         if (result.code == 200) {
            //             this.username = result.data.username
            //             this.password = result.data.password
            //         }
            //     }).catch()
            // })
        },
        methods: {
            //提交
            submitSystem() {
                // put('/modify', this.formSystem).then(res => {
                //     const result = res.data
                //     if (result.code == 200) {
                //         this.$notify.success({
                //             title: '系统提示',
                //             message: '修改成功',
                //             offset: 70
                //         })
                //         this.$router.push('/modify')
                //     }
                // }).catch()
            },
        }
    }
</script>

<style>
    .w-e-text-container {
        margin-left:5px
    }
</style>